<?php $this->headTitle($this->__('Edit') . ' » ', Zend_View_Helper_Placeholder_Container_Abstract::PREPEND);?>

<style type="text/css">
.errors {
    color: #f00;
}
</style>
<script type="text/javascript">
//<![CDATA[
    $(function(){
        $('form').find('input[type=password]').each(function(){
            var button = $('<a>').click(function(){
                $(this).attr('class', "showPassword")
                       .attr('href', "javascript:void(0)");

                var $field = $(this).prev();
                var $clone = $field.clone();

                if ($field.attr('type') == 'password') {
                    $clone.attr('type', 'text');
                } else {
                    $clone.attr('type', 'password');
                }
                $clone.insertAfter($field);
                $field.remove();
                $('form').aForm('init');

            }).text('<?php echo $this->__('Show')?>');

            $(this).after(button);
        });
    });
//]]>
</script>
<?php echo $this->aForm($this->form)->ajax(array('validateUrl' => $this->url(array('id' => $this->request('id')), 'users-management-validate')))?>